package com.hzgj.soa.protocol.pb.handler;

/**
 * Created by warning on 2016/11/4.
 */
public class PbConstants {
    public static final int REQUEST_MAGIC = 0xfadaed;
    public static final int RESPONSE_MAGIC = 0xfadb2a;
    public static final byte[] CRLF = new byte[]{'\r', '\n'};
    public static final String PB_PROTOCOL = "protobuf";

    public static int requestMagicLength() {
        return 4;
    }

    public static int responseMagicLength() {
        return 4;
    }
}
